Configure Custom Option Data for a Vendor Class

Before you begin

  • Create the vendor class.

  • Define the custom option.

About this task

Perform this procedure to configure custom vendor option data for the vendor class.
Note

Note

The switch follows inheritance and precedence rules for configured DHCP Server options. For more information, see DHCP Server.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure custom option data for the vendor class:

    ip dhcp-server vendor-class <1-255> custom-option-data <224-254> value WORD<0-128>

Example

Configure custom option data for the vendor class:

Switch:1>enable
Switch:1#config t
Switch:1(config)#ip dhcp-server vendor-class 20 custom-option-data 246 value 192.0.2.24
<cr>

Variable Definitions

The following table defines parameters for the ip dhcp-server vendor-class command.

Variable Definition

WORD<1-255>

Specifies the vendor class ID.

custom-option-data WORD<224-254>

Specifies the DHCP code that identifies the custom option.

value WORD<0-128>

Specifies a data value to apply to this vendor class.